fixed: Properly substitude path when source and target use different slash type
fixed: Typo
changed: Use an else for effiency