Updated process.platform bug and menu loop