Repository: nvm
Issue: Dash tests fail on my system
Labels: testing,pull request wanted

```
$ npm run test/fast

> nvm@0.24.1 test/fast /home/ubuntu/src/nvm
> shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=fast test-$shell


Running tests in dash
Running tests at 2015-04-06T18:49:59
  test/fast
    Aliases
    ✗ Running "nvm alias <aliasname> <target>" again should change the target
./Running "nvm alias <aliasname> <target>" again should change the target: 73: cd: can't cd to test
mkdir: cannot create directory ‘/alias’: Permission denied
! WARNING: Version '0.0.2' does not exist.
tee: /alias/test-stable-1: No such file or directory
test-stable-1 -> 0.0.2 (-> N/A)
mkdir: cannot create directory ‘/alias’: Permission denied
nvm alias test-stable-1 0.0.2 did not set test-stable-1 to 0.0.2
    ✗ Running "nvm alias <aliasname>" should list but one alias.
./Running "nvm alias <aliasname>" should list but one alias.: 73: cd: can't cd to test
mkdir: cannot create directory ‘/alias’: Permission denied
    ✗ Running "nvm alias" lists implicit aliases when they do not exist
./Running "nvm alias" lists implicit aliases when they do not exist: 73: cd: can't cd to test
mkdir: cannot create directory ‘/alias’: Permission denied
both the tree and the node path are required
nvm alias did not contain the default local stable node version
    ✗ Running "nvm alias" lists manual aliases instead of implicit aliases when present
./Running "nvm alias" lists manual aliases instead of implicit aliases when present: 73: cd: can't cd to test
both the tree and the node path are required
both the tree and the node path are required
stable and unstable versions are the same!
    ✗ Running "nvm alias" should list all aliases.
./Running "nvm alias" should list all aliases.: 73: cd: can't cd to test
mkdir: cannot create directory ‘/alias’: Permission denied
did not find test-stable-1 alias
      alias

      circular
      ✗ nvm_resolve_alias
./nvm_resolve_alias: 73: cd: can't cd to test
nvm_resolve_alias loopback was not ∞; got
      ✗ nvm_resolve_local_alias
./nvm_resolve_local_alias: 73: cd: can't cd to test
nvm_resolve_local_alias loopback was not ∞; got

    ✗ nvm_resolve_alias
./nvm_resolve_alias: 73: cd: can't cd to test
'nvm_resolve_alias test-stable-1' was not v0.0.1; got
    ✗ nvm_resolve_local_alias
./nvm_resolve_local_alias: 73: cd: can't cd to test
'nvm_resolve_local_alias test-stable-1' was not v0.0.1; got

    Listing
      alias


    Listing paths
    ✗ Running "nvm which 0.0.2" should display only version 0.0.2.
./Running "nvm which 0.0.2" should display only version 0.0.2.: 73: cd: can't cd to test
N/A: version "v0.0.2" is not yet installed
v0.0.2 not found
    ✓ Running "nvm which foo" should return a nonzero exit code when not found

    Listing versions
    ✓ Running "nvm ls 0.0.2" should display only version 0.0.2.
    ✗ Running "nvm ls 0.2" should display only 0.2.x versions.
./Running "nvm ls 0.2" should display only 0.2.x versions.: 73: cd: can't cd to test
both the tree and the node path are required
both the tree and the node path are required
both the tree and the node path are required
"nvm ls 0.1" did not contain v0.1.3
    ✓ Running "nvm ls foo" should return a nonzero exit code when not found
    ✓ Running "nvm ls io" should return NA

...
```