Fixing perms and changing bash to sh