Moved OS depended filesystem functions to unix dir