Fixed check of on whether to include InvariantEnsembles to work on Windows

The InvariantEnsembles package was not loading in Windows since filesize of a directory was zero.  Changing to filemode should fix the issue.