Fix issue with trailing slashes on Path attribute