Fix manlocks script