realpath fixes for $_view