Use [ -d
Deal with generated files better (make clean)
make install now can reinstall
Refactored: More flexibility, more thoroughness