mvebu: fix portability issues in the image makefile code