Only copy files if the parent directory exists

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Set PROVIDES conditionally based on TCMODE

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>