Rewrite install to work with bash