Fixed 'Maximum call stack size exceeded' error when calling isCordova on windows root dir