0 byte file handling on get and put

Fixes #36