Only concatenate if not a directory

Signed-off-by: Tobie Morgan Hitchcock <tobie@abcum.com>
Update documentation

Signed-off-by: Tobie Morgan Hitchcock <tobie@abcum.com>