How about: `DirectoryMaker.mkdir_p(File.expand_path(dirname))`