Fix issue where paths starting with a slash were not normalized correctly