Made script more OS-ignorant