Unify endsWith and startsWith logic into Util.
ppc64le and ppc64be should be detected as ppc64. Fixes #5.