Move applicationVariant to upload task for lazy init.
Fixes #45