Fix bug in reading workdir URI #1442

When temporary file contains multiple workdir-uri processing
instructions, only the first one should be used.