Fixed TemporaryPath when converting Path to File