getopt for os assignment 1