Finalized oscheck.sh script