Make after_deploy global (as otherwise it doesn't seem to work)