Default $dir to current working directory