Fixed bug when public path was symlinked.