some fixes to bsub environment setup and bsub command for farm3
should be check_and_set (not dir)