Improved 'from_env' decorator