Changed gitstatus script to a more portable one