fixed generating proxy classes to specified dir

Issue appeared to [commit](https://github.com/doctrine/mongodb-odm/commit/e0bfdb34318d9ecb3f6aaba2dc7fde9ef31b30fe#L2R112)