diff --git a/Dockerfile.osx b/Dockerfile.osx
index 8053561..5ff3cce 100644
--- a/Dockerfile.osx
+++ b/Dockerfile.osx
@@ -38,8 +38,10 @@ RUN git clone https://github.com/mono/mono --branch ${mono_version} --single-bra
ln -s /usr/bin/mono /root/dependencies/mono/bin/mono && \
ln -s /usr/bin/mono-sgen /root/dependencies/mono/bin/mono-sgen && \
ln -sf /usr/lib/mono/* /root/dependencies/mono/lib/mono && \
- cp -rvp /etc/mono /root/dependencies/mono/etc && \
- cp /root/files/mono-config-macosx /root/dependencies/mono/etc/config && \
+ mkdir -p /root/dependencies/mono/etc && \
+ cp -rvp /etc/mono /root/dependencies/mono/etc/ && \
+ cp /root/dependencies/mono/etc/mono/config{,.bak} && \
+ cp /root/files/mono-config-macosx /root/dependencies/mono/etc/mono/config && \
rm -rf /root/mono
ENV MONO64_PREFIX=/root/dependencies/mono
diff --git a/files/mono-config-macosx b/files/mono-config-macosx
index 5e1976f..5183f14 100644
--- a/files/mono-config-macosx
+++ b/files/mono-config-macosx
@@ -11,7 +11,9 @@
-
+
+
+