fix script permissions