Fix #2338 : Spelling mistake with occurred
Fix donot option check for windows/osx