Update main.cpp

Fixes not-so-obvious segfault if -o isn't supplied by user.