def getHeaderInfo(image_path, header_item):
  import lib.app, subprocess
  from lib.printMessage import printMessage
  command = [ 'mrinfo', image_path, '-' + header_item ]
  if lib.app.verbosity > 1:
    printMessage('Command: \'' + ' '.join(command) + '\' (piping data to local storage)')
  proc = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=None)
  result, err = proc.communicate()
  result = result.rstrip().decode('utf-8')
  if lib.app.verbosity > 1:
    printMessage('Result: ' + result)
  return result


@@ -1,8 +1,170 @@
+import os%0Amrtrix_bin_path = os.path.abspath(os.path.join(os.path.abspath(os.path.dirname(os.path.realpath(__file__))), os.pardir, os.pardir, 'release', 'bin'));%0A%0A
 def getH
@@ -286,17 +286,34 @@
 and = %5B 
-'
+mrtrix_bin_path+'/
 mrinfo',

use corresponding mrinfo also if bin path not set correctly