Fixed getcwd warning.