use "cp -a" instead of "cp --attributes-only" hopefuly fixing #6 and add a few tests