fixes paths for pickle importing

Solves #526.