dirname() need to have '../' as argument and following dir only need './' added to work