Make sure the directory name is expanded

Usecase: if jekyll-directory contains "~" the comparison fails unneeded.