fix first-admin script for current platform