added check for shadow builds and copy of infiles directory.