Fix current path normalization logic.