compileOF.sh: fix permission change directory