Add tests for no docker or foreman, add #! and pipefail