Fix plugin resources path when context path ends with /