Save .deps.lock file with Json pretty format
Fixes in "event" library to work with the new flags syntax