Refactor teamocil file to be cleaner, more portable