Fixed error in .menu file parsing on Unix

There were 2 weird pointer comparisons in the menu parsing code. It seemed to work on Windows but not on Unix, so it caused parsing errors (and thus unusable menus)