added output directories for single file build and directory build