fixed bug in install.sh, it is now directory independent