fix DirectoryNotFoundException in build process