Fetch the package name using a different technique

The existing technique for fetching the package name stopped working with the 0.7.3 version of the android gradle plugin.