Making directory cross platform