Only use a single call to server to discover changed files.

This should make deployments faster as each command run on the server
has a significant overhead.