Track instance methods use full filepath rather than filename
fixes bug in flatten_dir method and test