changed update.sh to work with what ever directory it is in