I also played around with os.listdir today to check if I am in the correct place. When I start the instance in fg with ./bin/instance fg my working directory is the package root. When I start the instance regular with ./bin/instance start my directory is in parts/instance where those files are clearly not located.
I wasn't aware of that so my initial questions is wrong. Here is a possible solution for my problem: