linkfile: fix spacing and a few syntax/lint errors

Signed-off-by: Constantin Runge <uroc327@cssbook.de>