Fix ad-migrate script mode check
Merge pull request #1509 from Zentyal/scabrero/fix-ad-migrate

Fix ad-migrate script mode check