Return actual path instead of empty string synonym

See #2133 for details.