check if directory exists, fixed issue #591
update changelog
merge fix310 branch