Fixed missing variable expansion ($filename).

Fixes gjb2048/moodle-theme_essential#356.