Fixed couple of small build issues and update qsub_remote script - must more robust now.