NXBT-726: fix execution of scripts when in a subdir