Use Path class, instead of string manipulation.

#19