More ugliness, templated dependencies script