Add last missing error message when a path is constructed.
Avoid creating a temporary string.
Merge pull request #168 from nierob/smallImprovements

Small improvements