some fixes to bsub environment setup and bsub command for farm3