fix ignore rule so we don't delete some versions

for example if there was a folder version/1.0.0-pre.1
and we deploy version 1.0.0, with the old code the 
1.0.0-pre.1 folder would be deleted.