BATCH_MODE fixes

Hey @kerns, want to give this a try to see if it works for you?

Addresses issues in #42 such as per-site log folder using and Rails/Symphony detection when BATCH_MODE is used.