Fix script permissions