Are you running pd with sudo privileges?
The user is part of the gpio group which has the correct permissions to execute echo "2" > /sys/class/gpio/export successfully. But you are right, strangely Pd only started as root can execute the "enable 2" message in the patch. Weird.
Thanks Ivo, P