Change on $global_basedir to include non default ports.