disk_off script: use extended pattern matching instead of regex