Standardize shell script, closes #788