Entering recovery mode when plugging powered off tablet to charger
It was simply a problem of line endings. Somewhere along the road I modified the lpm file and the line endings of the file were changed to Windows and they were supposed to be to Unix line endings. 

When you edit a file in a text editor make sure to the correct line endings. Next is a picture of how to do it in Sublime Text: