main: Create directories if they don't exist; fixes #37

- Add error checking to the 'move' command that moves the downloaded
  tempfile into the archive with the correct name
- Change the default of DEBUG_LOOPS to 50 from 100