Regex matching filename 'composer.lock' fixed

The previous regex had an unescaped period, which matches any character between 'composer' and 'lock' in the filename.
Merge pull request #1418 from peol/patch-1

Regex matching filename 'composer.lock' fixed