Use stdlib getoptlong instead of getopt gem