Update platform.sh

added version_file function
added redhat and oracle linux