Set working paths in a smarter way