Added selector hack to slave.sh, not environment.sh.