Fix Vitual Dir Calc Bug

While Vitual is relative path, realpath funcion will calc a wrong path.