Lindsey,
This looks like a reimplementation of  cms.FileInPath
If it is, please remove and use  cms.FileInPath.