fix #680 checking for subfolder