libcurl build: use correct dir when cd'ing to opts for pdf building