Moved the magefiles directory back to the project's root directory and created a separate go.mod file to keep the dependencies separated. The idea was suggested here: https://github.com/magefile/mage/issues/502