make install more robust