fix wrong directory detection
3.0.3