use pwd to detect current directory path.