Use cwd for path, if not given as a parameter