working_directory(Old, New) unifies Old with an absolute path to the current working directory and changes working directory to New. Use the pattern working_directory(CWD, CWD) to get the current directory.