Merge pull request #1 from rperello/master

Change on $global_basedir to support non default ports