Added stage enviroment.
Only load an extension if the path is a string.