Improve the clean function to work on OSX as well