extra check for finalpath being available

proper PR to `develop`, replacement for #923 by @JensTimmerman