bashrc: fixed spawn functions