Hosting a file along with my function

Problem solved. When using fs file paths are relative to the project root.