Refine script by having dynamic uname