Improve linkedPath to remove underscores