Corrected attachment path to filePath

Fixes #354