Fix issue with permissions when copying dir contents
[Bug] Permission denied error when trying to copy read-only directories recursively.
[Cause] boost::filesystem::copy applied permissions immediately, which in some cases caused
error when trying to write something inside processed directory.
[Solution] Instead of using boost::filesystem::copy on directories, split action into three
sub-actions:
* Create new directory with boost::filesystem::create_directory
* Call copyDirContentsRec() to copy contents of processed directory
* Apply source directory permissions and ownership
[Verification] Build, install, run tests.
Change-Id: Ifdec110a595dcecd113abf4065dd1cdc03f2d3cb