renamed mdadm hook; cleaned up script