normalize resolves double dots
use array_slice to re-index filtered array
normalize double dots cannot go above absolute path
normalize double dots can go above relative path