Fix: Treat --hooks parameter in UpdateMath.php correctly

Change-Id: I0d8d96543ee9e7e5279e134e19c8548febf1e695