Using dirname(${0}) as suggested