[TIMOB-17227] CLI: Passing empty option value, building the project returns Error

For https://jira.appcelerator.org/browse/TIMOB-17227
I think we can get rid of the `typeof projectDir === 'boolean'`.