Adapted LHE generation to possibility of using directly a UserCode directory instead of usercode