just in case there comes version 11 or 10.2.x.x you probably should check for those too.
so, the last if line would be:
if 10=$NavExecutable[0] and 1=$NavExecutable[1] and 0=$NavExecutable[2] and 394=$NavExecutable[3]

or even:
if "10.1.0.394" = join($NavExecutable,".")
_________________________
!

download KiXnet