Fix working directory if XST run fails.