make getcwd fail if it cannot obtain an absolute path