Taken care of trailing slash depending on if it is included or not which depends on the servlet container's Implementation of ServletContext.getRealPath - TRUNK-1859