Fixed #21732 -- Made compilemessages complain about non-writable locatio...

...n

Instead of crashing with a CommandError, now a non-writable location
of mo files will only make compilemessages complain and continue.