Updated main to prmopt for platform code base path on first run