#1380 fixed up use of context path and better error message