Fixed shell portablility
bug #5 Fixed shell portablility (alquerci)

This PR was submitted for the 0.2-dev branch but it was merged into the 0.1 branch instead (closes #5).

Discussion
----------

| Q               | A
| --------------- | ---
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Tests pass?     | yes
| Related tickets |
| License         | GNU GPLv3

Commits
-------

f54d8b8 Fixed shell portablility