fixes location of mainfile based on cwd
Release v1.3.1