Port option fix for restraint client.

Port option never worked because we first init the app_data->run_dir var and
then check if it is NULL. Now this check is done before initializing run_dir
and --port option does work.