Fix perms and shebangs for pacakging