stm32f103rey6 : add OS X compatibility 

change stm32f103rey6 scripts to be compatible with OS X which doesnt know `-f` flag for `readlink`