make install smarter, make length a little more portable