Fixing the build when running from the jar and removing an unneeded dependency