Add a right-trim function to allow the Dependency constructor to resolve...

... symlink paths with trailing spaces correctly.

I specifically ran into this while trying to package Allegro libraries into an app bundle.