fix argument handling when cm / cmi is invoked in a symlinked folder (#638)
replace '.' with os.curdir
Merge pull request #642 from ros/argument_handling_in_symlinked_folder

fix argument handling when cm / cmi is invoked in a symlinked folder