Fix script files permission errors