fixes scratch_dir not found error

Found a scratch_dir not found error on 10.28.  Turns the variable into a node attribute.