bash trouble shooting scripts