getabspath converts relative POSIX pathes to absolute ones.
