fix --directory in compile to --output