Fix case where path separator is end of match

Remove debug message