check if prefix directory really exists