Use pathlib for .yotta_ignore

Fixes ARMmbed/yotta#77