stop jregex from blowing up when permissions mean a directory can't be scanned