fix reinstall script, cd into setup directory prior to running mage (un)install scripts