function resolvePath (fileName, depth=2) {
	if (!isBrowser && isRelative(fileName) && !isURL(fileName)) {
		var callerPath = callsites()[depth].getFileName()
		fileName = path.dirname(callerPath) + path.sep + fileName
		fileName = path.normalize(fileName)
	}

	return fileName
}
function resolvePath (fileName, depth=2) {
	if (!isBrowser && isRelative(fileName) && !isURL(fileName)) {
		var callerPath = callsites()[depth].getFileName()
		fileName = path.dirname(callerPath) + path.sep + fileName
		fileName = path.normalize(fileName)
	}

	return fileName
}
function resolvePath ( fileName , depth = 2 ) { if ( ! isBrowser && isRelative ( fileName ) && ! isURL ( fileName ) ) { var callerPath = callsites ( ) [ depth ] . getFileName ( ) fileName = path . dirname ( callerPath ) + path . sep + fileName fileName = path . normalize ( fileName ) } return fileName }
path resolver taking in account file structure
path resolver taking in account file structure