Handling error when cwd does not exist (#2)