Unify all the n*foo scripts.

They shouldn't differ too much. They should be almost the same, just they
output directory is different.

Signed-off-by: Thiago Farina <tfarina@chromium.org>