use autoconf variables instead of directly call mkdir -p and sed in Makeile.am