Is it possible to declare a variable at the top (static_dir), and use that throughout?