Possibly fixed 'invalid read of size 4' error on execution for piped commands