Minor changes to work in live environment

Tweaks to accommodate different versions of php, etc