add: support for dsm.opt file

thanks for the pull request, just one thing: does the tsm client work without dsm.opt? if config_opt_hash
is undef in your pull request we do not create dsm.opt (if i'm right). afaik the client needs dsm.opt even if it's
empty. maybe we should move the old dsm.opt resource into an else part of the if statement...