ability to check for current distro

this version will detect the distro it is running on and use the appropriate commands.