Fixed getopt_afs to use modern exceptions
Fixed getopt_afs to use modern exceptions