Fixed pdf install check