fixed exception when directory with active php version does not exist