fix cwd not found error