make install script more elegant