harden regex for finding PHP versions in brew cellar