Use APPLICATION_BINARY_NAMES map for getting the correct binary (#125)

(cherry picked from commit bf0834a419970efee625fa901cf093f164fd0830)