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