XD-1581 Fix config location in scripts

- Set config locations prefix file:

  - Fix non-batch script files

- Fix scripts for config location

  - Always append "/" to XD_CONFIG_LOCATION so that when it gets appended for
XD_MODULE_CONFIG_LOCATION it is valid
  - Also, having "//" (if the existing property already has "/" this change would still add one)
on both *nix and windows seem to work fine.

- Fix xd.config.home to use XD_CONFIG_LOCATION

  - Fix the scripts that use XD_CONFIG_LOCATION