fix a bug in build system which updated resource files are not copied