expand contextPath variable