Automatically detect distro and removed trailing whitespace.