refactoring: extracted shell builder out of job template