fix bash status reporting