add index to static pathnames if ends w/ "/"