fixed normalizePath to keep a '.' path when necessary.
Added BUG #3522 to the changelog.
Code style fix & CHANGELOG typo fix for bug #3522
Implemented qiangxue's solution as it is much simpler.
Fixed path in unit test to use the directory separator variable.
Merge pull request #3529 from skotos/3522-normalizepath-current-path

#3522 normalizepath to allow current path