copy importPaths code of the go cmd
use ImportPaths for the package argument
allow recursion into relative and absolute file paths