Correct logic error with argument processing.
simple server now works regardless of order when specifying path and port