make sure executable-hooks is installed before running regenerate_binstubs, fix #2808
simplify selecting master branch for non mri