+ Fixed two bugs in the Upload optimization code

1. The code was uploading the newly added file over and over again
(though the information was being added to the dictionary) . Just
realized I forgot to push it to the persistent file for the next sync
cycle to pick up.

Without pushing the updated dictionary , all consecutive sync with just
new file was uploading it in every cycle. Fixed this bug.

2. Was using getctime instead of getmtime !! fixed .