Windows state ignore index and fix bugs

Add ability for state to ignore index of the new path within system path.  Also needed to change indexing code in execution module to fix bug so new path can be appended rather than being inserted to the next-to-last place.