fix error when srcdir is symlink

	use realpath instead of normpath, it can convert srcpath to the realpath