Determine the current directory from the process output for a prompt.
This filter function is used by `dirtrack-mode'. It looks for
the prompt specified by `dirtrack-list', and calls
`shell-process-cd' if the directory seems to have changed away
from `default-directory'.
(fn INPUT)