Make sure workdir is expanded when checking existence