Fixed path for gateways on OS X

-- gateways is inside of bundle and user.dir is not set to bundle anymore
-- proper way for getting resources from bundle is calling FileManager.getResource()
-- also catches some Oracle's bugs in original Apple Java implementation