Add the import for expanduser and the correct call