bugfix: do not use . as path when no valid path given, error out instead