First version.
Use os.path.expanduser for cwd path.