change deprecated script for namenode formatting