Fixed a bug in resolving the icon_dir path.