There is no reliable way in bash to derive the path of the current script, therefore avoid this at all costs.