fix contextPath on cli if not well formated by user