Append trailing slash if required