Fix the post_install hook to be applied to all target not just one