OHAI-126: Improve file regex to handle trailing slash