mkmap.sh: cd into directory instead of dirname everywhere