Fixed error with shodan key file creation

So, the logic I used was a bit screwed. This has been fixed.
Originally, it would still try and create that shodan key file no
matter what and would error out.