Resolving issues with path loading for custom scripts