handle osx and vim temp files