JBDS-3092 reverse check for 'is this a product build' and add more cleanup of tmpfiles