Fix a showstopper where DSFunction writes out absolute path

This pull request fixes the following defect:

[MAGN-981 DSFunction should not save assembly location to XML](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-981)

Please refer to the comments inlined alongside the codes.