Added some OS dependant functionality for paths