Enhanced f() and g(): support symlink; support grep opt and more paths
Use path_prepend() to replace pathmunge()