Manage file paths properly