Add exec support to components

This patch fixes file copying for `addComponent()`.