regexp test for allowable paths for quarantine
node10 compat