Enhanced command line, unix socket & rake tasks

Since you are including `fileutils` you could use `FileUtils.mkdir_p(File.dirname(path))`