downcase path comparison in application directory test
Merge pull request #2808 from jw2013/master

Downcase path comparison in application directory test

On case insensitive operating systems like Mac OS X, the path stored
by the code server may not match the case of the one from System.cwd!