resolve paths and get path, dir, file, ext
@param {Array/String} paths string or array of paths to resolve
@returns {Object}  fullPath, dirName, fileName, extName
function resolve(paths){
    paths = Array.isArray(paths) ? paths : [ paths ];
    var fullPath = path.resolve.apply(this, paths).replace(/\\/g, '/');
    
    return {
        fullPath: fullPath,
        dirName: path.dirname(fullPath),
        fileName: path.basename(fullPath),
        extName: path.extname(fullPath).replace('.','')
    };
}