Fixing regexp when ignoring test directories