Fix relative path resolution in View.

Relative paths in view file names where handled very poorly before when subdirectories were involved. This was not very important in 2.x but is more important for 3.x as we have Cells and relative paths should work
properly.

Refs #3945
@markstory This line is the same of the next if condition. Probably you can merge the if condition to avoid the repeated code.