cosmetic fix
avoided calling path.join() with undefined args because it throws an exception in node 0.10