Fixed test if --path does not exist