Better path handling in theme setup