Reorder build_from_dir parameters to maintain compatibility