directory: Add safe_makedirs and safe_touch
directory: Add safe_makedirs and safe_touch

These two functions attempt to create a directory or a file
and don't throw an exception if it already exists.

polysquare/polysquare-travis-container