seperate chmod and run sh file

avoid error "text file is busy"