Makefile: fix version file creation