corrected path calculation.

without this, the resulting exe will not launch correctly
when the current working directory is unequal to that where the exe resides