Check `file.versions` is set

Why isn't an error thrown when `NODE_ENV=test`?
Merge pull request #7 from tlvince/bug/conditional-versions

Check `file.versions` is set