minor fixes for v0.10 path.join changes

avoids TypeError: Arguments to path.join must be strings