CQM-152 Added XXX placeholder for directory template

* XXX placeholder is required for non Mac OS X systems (i.e. Linux)
* This still provides full compatibility with Mac OS X/xBSD
CQM-152 Replaced ECHOX calls by printf

* printf command is the most portable one for all GNU/BSD flavours
* it is defined by early POSIX standard
* this needs to be included in the future instead of echo command widly used
  right now