Small path handling fix for optional custom scripts