Fix mkdir -p and make sure compiled for release.