Hardcoding every project key in the regular expression

The search for the project name is dropped, but the function as
implemented now is much simpler and cleaner.