added the ability to compile a directory