Fix source_dir option ignored