Change on $global_basedir to include non default ports.
Merge pull request #1 from rperello/master

Change on $global_basedir to support non default ports