That still doesn't solve the issue here... We need to pass around filepath because the use could have specified a different filename and we need that filename to write out the lockfile.