Replaced fgets() with try_fgets() in command_db library.
Replaced fgets() with try_fgets() in keybindings library.