magit-status: ensure the directory ends with a slash