use LooseVersion to clean up a recent change
Merge pull request #838 from dimagi/looseversion

use LooseVersion to clean up a recent change