correctly strip www from filename - fixes #70
support local paths - fixes #44