More vital shell script tweaks