Update sublime stuff
Check for darwin first since it does not support substr syntax
Check for darwin first since it does not support substr syntax