Fixes sandboxing issues in export commands. Closes #22