Minor Linux fixes
- analyzing result of getcwd() to detect error (there was a warning when building with gcc 4.9)
- test.sh: added support for VMware shared folders when looking for a game