dereference symlinks
Added fixes for test
Merge pull request #271 from AppScale/symlinks

dereference symlinks