Fix importing materials from/to paths with whitespace