fix the defect where copying idl files fails when a out-of-source build directory is used