fixes bug when cwd != project path