Fix plugin not working when project directory is empty.
Signed-off-by: Dmitriy Pavlenko <dmitriy.pavlenko@sysgears.com>