Fixed issue 42 for linux

This is my first pull request so let me know if there is something else you would like me to do