Fixes #3008, Use tar instead of cp to make sure target dir is created