JBIDE-15009 : make go offline script more robust

Signed-off-by: Fred Bricon <fbricon@gmail.com>