Regex matching filename 'composer.lock' fixed

The previous regex had an unescaped period, which matches any character between 'composer' and 'lock' in the filename.