Remove NSTask category and move implementation to in place at single place it was used
Remove NSTask category and move implementation to in place at single place it was used

JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim