Fixed issue #7. Now supports semantic versioning.

This is a simple fix for issue #7.