Sanitize path for "(magit-status ".") to work

fix #1210