Making sure that the cwd and file location paths are correct