Fix for JENKINS-22342

Only normalize with slash certain repository types.
Should match behaviour prior to
7abfafcf58addbce2c268dbfed1910a90d4fe2a3