Add command to download all profiles

I added a command to download all profiles, includes a small fix to an exception that occurred when list_profiles is called after download_profile.