DSS-262 #time 22m Refactoring BASH scripts in order to permit testing from outside of the Travis CI environment