fixed a bug where a single dot was converted to 0 when passed via -v (e.g. -vTDIR=.) added more test cases