[PATCH v3] Makefile: use shell to calculate map_size