Let $X$ be an irreducible nodal projective curve over an algebraically closed field of characteristic $p>0$. Denote by $\pi:\tilde{X} \to X$ the normalization of $X$. Recall, the short exact sequence of Picard numbers from Hartshorne, $$0 \to \oplus_{x \in X} \tilde{\mathcal{O}}_{X,x}^*/\mathcal{O}_{X,x}^* \to \mathrm{Pic}(X) \xrightarrow{\pi^*} \mathrm{Pic}(\tilde{X}) \to 0$$ where $\tilde{\mathcal{O}}_{X,x}$ is the integral closure of the local ring $\mathcal{O}_{X,x}$.
Fix an invertible sheaf $L \in \mathrm{Pic}(X)$. Let $E$ be a locally free sheaf on $X$ such that the determinant of $\pi^*E$ is $\pi^*L$. The question: Does there exist a locally free sheaf $E'$ on $X$ with the same Hilbert polynomial as $E$ (i.e., same rank and degree) and whose determinant is $L$? In other words, does there exist an invertible sheaf $L'$ on $X$ such that the determinant of $E \otimes L'$ is isomorphic to $L$? Any hint/reference on this will be very useful.