Add :tex dependency and remove manual checking for pdftex