Bash related updates to runatboot.sh and donotrunatboot.sh

This pull request makes sure it will work as expected.