fixed: empty files weren't removed
fixed: fingerprint flag wasn't read correctly
improved: creation of temporary filenames
improved: logging
added: new fingerprinting method (curl)