Removed rests of the code connected with directory check. (#159)