Fix logic error in migrations library

- If $currentVersion is 0 or false, the version should be inserted. If,
somehow, $currentVersion is the string '0', or any other version number,
the version should be updated.
- Also, moved the comment for the if statement in the conditional in an
attempt to clarify the intent of the code.