Fix early script abort

migrate/ is a directory, rm -f does not work on it unless
it would be empty (which it isn't)
Merge pull request #1970 from dirkmueller/master

Fix early script abort