Don't copy empty data
Fix sourcing overrides SCRIPT_NAME value