Use bash syntax for file detection - update #1984