@DarkDimius, how about guarding against readlink not being available? It always annoys me when scripts assume I have programs other than the unix coreutils installed on my machine:
```
if [ -z `which readlink` ]; then
  echo 'Please install readlink: {brew, apt-get, yum} install readlink'
  exit 1
fi
```