fixed build script so profiles folder actually contains profiles