Get dynamic root path instead of hardcoded one