Fix a bug when directory missing

Missing files dir would cause the entire tree to be copied into the petalinux root