NXP-1157: remove ugly code for variable replacement, using ${org.nuxeo.ecm.contextPath} instead is replaced correctly