Fix chmod command assuming extension .sh