Do not check if getcwd() result begins with a slash.