Fix accidental references to global app
Fix creating files to respect working directory