ensure that file path is not absolute before joining to cwd