added changes to auto install reshape2 if needed, and script now supports both linux and windows