correct link creation and add permissions

create link to binary based on arch and set permissions