Made the shell scripst and exe version independent