The only thing that's really important is the differential eqaution. The situation is, outside the well, in both cases:
$\dfrac{d^2 \psi}{dx^2}= - \frac{2mE}{\hbar^2} \psi$
Now it's foundamental notice that for bound states E<0 so we can write: $E=-|E|$ and Sc. equation become:
$\dfrac{d^2 \psi}{dx^2}= + \frac{2m|E|}{\hbar^2} \psi$
So the usual way to conclude this problem is setting $k= \sqrt{\frac{2m|E|}{\hbar^2}}>0$ , now the roots of differential equation are $\pm k$ and general solution is:
$\psi=Ae^{+kx}+Be^{-kx}$
Intead of that you can resolve the problem in this way:
$\dfrac{d^2 \psi}{dx^2}= - \frac{2mE}{\hbar^2} \psi$
(without explicity absolute value)
now put $\alpha= \sqrt{- \frac{2mE}{\hbar^2}}$ so:
$\dfrac{d^2 \psi}{dx^2}= \alpha^2 \psi$
Solution is (as above):
$\psi=Ae^{+\alpha x}+Be^{-\alpha x}$
And you can now put in the exponent $E=-|E|$ (bound states):
$\alpha= \sqrt{- \frac{2mE}{\hbar^2}}=\sqrt{+ \frac{2m|E|}{\hbar^2}}=k$
Finally: $\psi=Ae^{+\alpha x}+Be^{-\alpha x}=Ae^{+k x}+Be^{-k x}$
The solutions are (obviously) the same in the two different ways (the idea is only in a case to explicit the absolute value immidiately and in the other case to do that at the end).