Unify install scripts for release and master