update script to copy only .cc and .h file