fix(builder): delete images on destroy

fixes #2530
`if [ -n "$JOB" ]; then` is probably safer here, no?