Python Check If Relative Path In Command