Handling files and directories portably
