Fix for checking if file exists
It might occure that we cannot even check the existence of a file with internal java. So we use root as fallback