Unfortunately, this template is missing the custom link step needed by nRF51822 binaries (hex concatenation), so it won't be able to generate proper files. There is no simple platform independent solution to this. On Windows, the tools in the Nordic SDK can be used for this custom link step (see the uVision exporter template for an example).