Add a configurable destination file

- Redirect output to `$dest` instead of a hard-coded path. This allows
  for more configurability on the server.
- Add checks for the `$username`, `$password`, and `$dest` environment
  variables' existence.