Fix for Mac and some bugs at bootload
Add fix a file at bootload and Fix for Mac at os