Fix issue with empty path.