Fixed #67 by making sure the path to the target directory was saved before processing
Copied environment globals from rails2_production