BAMPFA-113: fix small bug in pattern match for filename
PAHMA-1065: more authentication updates. It now actually works...