Fixed API generation when overwriting existing output.
Merge pull request #48 from ezzatron/feature/fix-api-overwrite

Fixed API generation when overwriting existing output.