Fix non existent file upload

Stop immediatly instead of trying to upload zero-length file to server
delete file function
version update
Merge pull request #5 from vannell/fix_non_existing_file_upload

Fix non existent file upload