don't end directory names with ".". closes #177