Fix getopts -d

allow -d to take a value

fixes these two issues

https://github.com/collectiveintel/cif-smrt/issues/66
https://github.com/collectiveintel/cif-smrt/issues/67