Prevent empty $path from getting treated as relative path.