finding path variables on different operating systems 

and adding directory separators so that the complete paths are correct (it doesn't matter if there are two path separators together, I believe all platforms will handle this correctly)