correct current directory value