extract old hooks, remove unecessary check if installation directory exist, update #2634