Use new Palaso PathUtilities methods

This allows the changed sections of the code to work on Linux as
well and improves readability.