extra check for finalpath being available
Merge pull request #931 from JensTimmerman/finalpath

extra check for finalpath being available