Fixed bug where an exception is thrown if the paths differ on capitalization

For example the path c:\inetpub was different from C:\inetpub.