[FIXED JENKINS-18970] Escape File.separator when used in a regex.