better working appdirectory build