[TIMOB-14973] Moved Android enviroment detection from config() to validate(). Fixed a bug with how the --device option are handled.