has_variable("try_files") somehow always evaluates true which breaks the module. Replaced with proper if statement.