Update gmap.sh

Fixed logic related to movedata variable