fix "Fatal error: Arguments to path.join must be strings"