Fix ROOT if hg-fast-export is in PATH

dirname $0 will return "." if hg-fast-export is in the path.
Use "type -p" to find the full path to the script.
Merge pull request #37 from ottxor/master

Fix ROOT if hg-fast-export is in PATH