Bash - current directory

#!/bin/sh
BASEDIR=$(dirname $0)