* added support for mcp hook iosuhax version * use opendir instead of stat to see if directory exists