exit scripts when running under bash