Fix remote tar ADD behavior

Fixes #3964