update install script

- Changed installation directory to build
- Check if recompilation is necessary, if it is make clean and recompile