fixes #12

I am not sure whate the check in line 72 is for. But with this fix the default repository will be an instance of ZipRepository. The error was caused because $this->repository was set as a string instead of an object.