Use the real path of the running file instead of the relative path from where the function is run. This means `serverless function run componentnamd/modname/functionname` works everywhere in the project, not just in the function directory.
lib