Dynamically finding script dir even when executed in other working dir