Port file-adding to st2 plugin