run.n script fixes for Linux support.