changed to use a variable instead of a system command

this is faster and doesn't slow down opening unite