Fixed directory copy on linux systems

Signed-off-by: Damien Le Berrigaud <damien@pivotallabs.com>