Made uploadArchives task available only when required configuration is present. Fixes #2