use std::io::fs::PathExtensions

Fixes #41