Fix more perms and shebangs for pacakging