Alternative but compatible implementation of NSTask