Enable checking if file exists with a HEAD request

Fixes #67