Fixed regexp for searching hook scripts (bnc#813235)

Do not match scripts for different steps, for "before_registration" step also matched "before_registration_check" scripts which is wrong.