fix virtual path gen

resolve #11
reapply old change
Merge pull request #14 from Nami-Doc/patch-1

fix virtual path gen