A Fabric-inspired cd context that temporarily changes directory for
performing some tasks, and returns to the original working directory
afterwards. E.g.,
Wrapper for os.makedirs that does not raise an exception if the directory already exists, in the fashion of
“mkdir -p” command. The check is performed in a thread-safe way