Fix memory management issue with ##set-gambcdir!