directories ending in .egg work

On both Mac OS X.8 and CentOS 6, luigi fails at this check, because the directory name has .egg in it. For example:

/Library/Python/2.7/site-packages/luigi-1.0.3-py2.7.egg

is a directory in my installation, not an egg file.