Only setting the lockfile name if options is a string