Make sure hook runs in the root directory