Fixed composer.json being overwritten when invalid and user answers 'n'
Merge pull request #4 from burriko/master

Fixes issue #1 'composer.json is overwritten when it is not valid'