First set of fixes for gestioip_exec
Land #2463, fixes to gestoip