Attempted to solve 'argument list too long' bug with xargs