Fixed missing variable expansion ($filename).