Fix for media path with file protocol