Fixed file_put_contents error in Windows 8

When 'composer update' tried to deprecate more than one package he raised an error on file_put_contents. I fixed the error avoiding to save many times the file vendor/composer/installed.json
fix