change header sh by bash
change user home detection
add sudo before clean and link commands