Fixed the deploy script to properly link media folders after deployment.