Fetch catalog.json from the source host
Fetch catalog.json from source host directly
Set file executable
Copy file correctly
Use spawn instead of system to run command asynchronously