move cinnamon target check to beginning of file