Fix some problems about executable script