Splits build, config and demo files in different directories