extract Environment Name
Extracts the environment name from a filename following the env.<name>.<ext> pattern.
Return
The environment name, or null if the filename doesn't match the pattern
Parameters
filename
The filename (without directory path) to extract from