Well, if you created the Unix socket in $PWD, you cannot expect it to be in the location configured by postgresql.conf or the default location.
$PWD
postgresql.conf
Try
createdb --host=$PWD mydb
Your are just horsing around and experimenting, right?