changed install and purge scripts to work with soft links