XD-473 Improving command line argument access

Making the command line argument access compatible
with all environments supported by the batch script