Remove configure dependency on nonstandard echo -n, using awk