sr-100

@dejuknow Last two commits fixes windows filekey issue.