Try changing the app directory at the end of compile.