Fix creation of version pattern