Added Rob's changes to getProgramPath.m - mainly to check for OS
compatibility
Merge pull request #24 from kalden/Robs_getProgramPath_Fix

Added Rob's changes to getProgramPath.m