Changed check for use of curlfile