remove None from path