Fix path issues with update hook