fix 4 https://github.com/flyway/flyway/issues/589

hello Alex,

I created test case reproducing the problem and provided the fix

cheers,
Lukasz