New url, check for valid response and right temp dir
Merge pull request #7 from soswow/handling-non-200-response-and-tmp

New url, check for valid response and right temp dir