UNDERTOW-272 Validate non canonical name for FileResource

I've added same validation used in master for 1.0.x branch.
Directories represented with symbolic links can be missed in 1.0.x without this validation.