Avoid changing work files during each run

Avoid huge memory consumption due to recursive file operations across work directory by instead changing file ownership immediately after installation and not during each run.