emulating directory creation in rbenv.