Fix for OSX

Just moving the -R flag around. Original code gave the following error on OSX:

chmod g-w ramdisk -R
chmod: -R: No such file or directory
make[1]: *** [initrd] Error 1