Updated env lookup with namespace information
The namespace can be given to Misc functions, allowing it to look in
subdirectories in the loadpath that correspond to the namespace. It is not
integrated yet however.