make exploring dir of current file more reliable