automatically create output directories
Fixed a mistake in the acomp.h definitions