If the current working directory or the realpath could not be retrieved, return the path as it was passed to mp_normalize_path() to avoid guarding the return value. This is also makes it consistent with what the Windows code was doing.