mklinks: Made the script more POSIX-compilant