Trailing whitespace and some parsing of ldd output