Added check to test if craft/ dir exists