I think this will probably fail if `rooted_template_location` requires nested directories to be created. Perhaps `FileUtils.mkpath` instead? With that in place, you could probably skip the `unless` clause entirely.

http://stackoverflow.com/questions/3686032/how-to-create-directories-recursively-in-ruby