Litlle improvements (update system)

- Check UPDATE_FILENAME exists before applying update
- Add empty line at the end of files