Fix issues with finding paths in java on Linux