Make 'pal' detection work from head node or batch job.
Make 'pal' detection work from head node or batch job.

alexfrolov/grappa,buaasun/grappa,alexfrolov/grappa,buaasun/grappa,uwsampa/grappa,alexfrolov/grappa,alexfrolov/grappa,buaasun/grappa,buaasun/grappa,buaasun/grappa,uwsampa/grappa,alexfrolov/grappa,uwsampa/grappa,uwsampa/grappa,uwsampa/grappa,uwsampa/grappa,buaasun/grappa,alexfrolov/grappa,uwsampa/grappa,buaasun/grappa,alexfrolov/grappa