change null/undef folder references to empty string

fixes exception on path.join with node.js 0.10, which doesn't allow any
other args than strings.

Jira-issue: WP-980
Merge pull request #15 from aldafu/WP-980-node-0.10-compatibility

change null/undef folder references to empty string