DRYed up filename tests, and use raw strings for regex
DRYed up filename tests, and use raw strings for regex

mark-in/securedrop-app-code,mark-in/securedrop-app-code,mark-in/securedrop-app-code,mark-in/securedrop-app-code