Fix path being saved without a trailing slash.