fix chdir failure

$opts->{dir} is undef via start_server

./start_server line 20

            $opts{$name} ||= undef;