Fix error 'No such file or directory - getcwd'