Parse command line args for port and directory, necessary for CobSpec