make: improve failing RIOT_VERSION

- make RIOT_VERSION fail-safe (compare: https://github.com/RIOT-OS/RIOT/pull/1475#discussion_r15534849)
- add RIOTBASE to UNKNOWN RIOT_VERSION