Code reorganization and fixes around the vfs_path_as_str() function

Signed-off-by: Slava Zanko <slavazanko@gmail.com>