A late penalty from Vincent Atinga sent Ghana through to the group stages of the 2017 WAFU Cup of Nations in Cape Coast.