Bug fix $path == ''.