[scripts] create hardlinks correctly

Signed-off-by: Juha Kallioinen <juha.kallioinen@jolla.com>