Refactored post-deploy script to do a pull and do away with permission issues once and for all.