Refactor static_library_task.rb