configuration: Add parsing of argv via getopt

Also integrate this in main