add configuration status aka final_message
refactored: copy files to build tree - use a function