Adjust the ordering of calling post_deploy so that perm fixing comes afterwards