Fix ROOT_PREFIX replacement in Makefile