fixed chdir(), added pidfile to cfg, set /usr/local/bin/bash