Fixed bug with virtual path in case a physical path is not a part of it.