LPS-43322 Fix macrodef for shell script execution