fix docker builds

$JOB is only define for slug builds

116     # build the application and attach to the process
117     JOB=$(docker run $BUILD_OPTS deis/slugbuilder)

line below makes pre-receive hook to decline the push

182 docker rm -f $JOB &>/dev/null