Another attempt to get correct directory