fixed emulate.sh for bin directory