cleanup intellij mess
add slash if this is directory